/*
 * @Date: 2022-01-10 16:18:25
 * @LastEditors: 春贰
 * @Desc: 
 * @LastEditTime: 2022-03-23 11:34:43
 * @FilePath: \web\src\api\module\SysDatabackup.js
 */
import http from '../http'

const Api = {
    list: '/databackup/list',
    tables: '/databackup/tables',
    add: '/databackup/add',
    restore: '/databackup/restore', 
    edit: '/databackup/edit', 
    remove: '/databackup/remove',
    batchRemove: '/databackup/batchRemove'
}

export const list = data => { 
    return http.request({
        url: Api.list,
        data: data,
        method: 'POST'
    })
}

export const tables = data => { 
    return http.request({
        url: Api.tables,
        data: data,
        method: 'POST'
    })
}
 
export const add = data => {
    return http.request({
        url: Api.add,
        data: data,
        method: 'POST',
        timeout:0
    })
}

export const restore = data => {
    return http.request({
        url: Api.restore,
        data: data,
        method: 'POST',
        timeout:0
    })
}

export const edit = data => {
    return http.request({
        url: Api.edit,
        data: data,
        method: 'POST'
    })
}

export const remove = data => {
    return http.request({
        url: Api.remove,
        data: data,
        method: 'POST'
    })
}

export const batchRemove = data => {
    return http.request({
        url: Api.batchRemove,
        data: data,
        method: 'POST'
    })
}